home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / libogg / libvorbis-1.0rc3 / lib / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-27  |  1.7 KB  |  44 lines

  1. /********************************************************************
  2.  *                                                                  *
  3.  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
  4.  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
  5.  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6.  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
  7.  *                                                                  *
  8.  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001             *
  9.  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
  10.  *                                                                  *
  11.  ********************************************************************
  12.  
  13.  function: miscellaneous prototypes
  14.  last mod: $Id: misc.h,v 1.10 2001/12/20 01:00:29 segher Exp $
  15.  
  16.  ********************************************************************/
  17.  
  18. #ifndef _V_RANDOM_H_
  19. #define _V_RANDOM_H_
  20. #include "vorbis/codec.h"
  21.  
  22. extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
  23. extern void _vorbis_block_ripcord(vorbis_block *vb);
  24. extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB);
  25.  
  26. #ifdef DEBUG_LEAKS
  27. extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line); 
  28. extern void _VDBG_free(void *ptr,char *file,long line); 
  29.  
  30. #ifndef MISC_C 
  31. #undef _ogg_malloc
  32. #undef _ogg_calloc
  33. #undef _ogg_realloc
  34. #undef _ogg_free
  35.  
  36. #define _ogg_malloc(x) _VDBG__ogg_malloc(NULL,(x),__FILE__,__LINE__)
  37. #define _ogg_calloc(x,y) _VDBG__ogg_malloc(NULL,(x)*(y),__FILE__,__LINE__)
  38. #define _ogg_realloc(x,y) _VDBG__ogg_malloc((x),(y),__FILE__,__LINE__)
  39. #define _ogg_free(x) _VDBG__ogg_free((x),__FILE__,__LINE__)
  40. #endif
  41. #endif
  42.  
  43. #endif
  44.